#! /bin/bash
IFS='
'
for line in `cat /etc/hosts`
do
	hosts[i++]=$line
done

for i in ${!hosts[@]}
do
	echo "$i : ${hosts[i]}"
done
